import java.util.Arrays;
import java.util.Scanner;


public class Main {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        sb.append(true);
        System.out.println(sb);

    }
    public static void main30(String[] args) {
        int[] arr1 = {1,2,3};
//        int[] arr2 = Arrays.copyOf(arr1,arr1.length * 2);
        int[] arr2 = Arrays.copyOfRange(arr1,0,2);

        System.out.println(Arrays.toString(arr1));
        System.out.println(Arrays.toString(arr2));
    }



    private static final float EPSILON = 1e-6f; // 定义一个适当的误差范围

    public static boolean areAlmostEqual(float a, float b) {
        return Math.abs(a - b) < EPSILON;
    }

    public static void main21(String[] args) {
        float a = 1.3f;
        float b = 1.52f;
        float sum = a + b;
        float expected = 2.82f;

        System.out.println("Sum: " + sum);
        System.out.println("Is sum almost equal to 2.82? " + areAlmostEqual(a+b, 2.82f));
    }
    public static void hannuota(int n,char pos1,char pos2,char pos3) {
        if (n == 1) {
            move(pos1, pos3);
            return;
        }
        hannuota(n-1,pos1,pos3,pos2);
        move(pos1,pos3);
        hannuota(n-1,pos2,pos1,pos3);
    }

    public static void main20(String[] args) {
        hannuota(64,'A','B','C');
    }

    public static void move(char pos1,char pos2) {
        System.out.print(pos1 + "->" + pos2 + " ");
    }
    public static int pow(int a, int b) {
        int temp = a;
        b--;
        while (b != 0) {
            a *= temp;
            b--;
        }
        return a;
    }
//    public static void main(String[] args) {
//        int num = 56781;
//        int d = 0;
//        int temp = num;
//        while (temp != 0) {
//            d += 1;
//            temp = temp /10;
//        }
//        System.out.println(d);
//        for (d = d - 1; d >= 0;d--){
//            temp = num;
//            int result = temp / pow(10,d) % 10;
//            System.out.println(result);
//        }
//        System.out.println(pow(3,3));
//    }
    // 空间复杂度 n
    public static void main5(String[] args) {
        int num = 5678;

        while (num != 0) {
            System.out.println(num % 10);
            num = num/10;
        }
    }
    // 123 -> 1   2   3
    public static void func(int num) {
        if(num <= 9) {
            System.out.println(num);
            return;
        }
        func(num / 10);
        System.out.println(num % 10);
    }
    public static void main4(String[] args) {
        func(5689);
    }
    public static void main3(String[] args) {
        Scanner scanner = new Scanner(System.in);
//        while (scanner.hasNextInt()) {
//            int n = scanner.nextInt();
//            System.out.println(n);
//        }
        System.out.println(sum(10,20,30));
    }
    public static int sum(int a,int b,int c){
        return a+b+c;
    }
    public static double sum(double a,double b) {
        return a+b;
    }
    public static void main2(String[] args) {
        int a = 1;
        int sum = 0;
        for (int i = 0;i < 100;i++) {
            sum = sum + a;
            a++;
        }
        System.out.println(sum);
    }
    public static void main1(String[] args) {

        int a = -1;
        System.out.println(a >>> 1);
        for (int i = 0; i < 10;i++) {
            System.out.println("sb" + i);
        }

    }
}
